package com.ruoyi.rocky.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * 产品对象 pc_product
 *
 * @date 2024-04-25
 */

@Data
@NoArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true)
@TableName("pc_product")
@ApiModel(value = "PcProduct", description = "产品表")
@AllArgsConstructor
public class PcProduct extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ApiModelProperty(value = "产品id")
    private Long id;

    /**
     * 产品id
     */
    @Excel(name = "产品id")
    @ApiModelProperty(value = "产品id")
    private String tenantCode;

    /**
     * 分类ID
     */
    @Excel(name = "父类ID")
    @ApiModelProperty(value = "父类id")
    private Long parentId;

    /**
     * 产品名称
     */
    @Excel(name = "产品名称")
    @ApiModelProperty(value = "产品名称")
    private String productName;

    /**
     * 产品价格
     */
    @Excel(name = "产品价格")
    @ApiModelProperty(value = "产品价格")
    private BigDecimal productPrice;

    /**
     * 产品图片
     */
    @Excel(name = "产品图片")
    @ApiModelProperty(value = "产品图片")
    private String productImg;

    /**
     * 文字详情介绍
     */
    @Excel(name = "文字详情介绍")
    @ApiModelProperty(value = "文字详情介绍")
    private String productDescription;

    /**
     * 文字评论
     */
    @Excel(name = "文字评论")
    @ApiModelProperty(value = "文字评论")
    private String productComment;

    /**
     * 产品数量
     */
    @Excel(name = "产品数量")
    @ApiModelProperty(value = "产品数量")
    private Long productSum;

    /**
     * 状态：1-上架 0-下架
     */
    @ApiModelProperty(value = "状态：1-上架 0-下架")
    @Excel(name = "状态：1-上架 0-下架")
    private Long status;


    /**
     * 逻辑删除 1-删除 0-未删除
     */
    @ApiModelProperty(value = "逻辑删除 1-删除 0-未删除")
    @Excel(name = "逻辑删除 1-删除 0-未删除")
    private Long isDelete;

    /**
     * 创建者
     */
    @ApiModelProperty(value = "创建者")
    @TableField(value = "create_user")
    private String createUser;

    /**
     * 更新者
     */
    @ApiModelProperty(value = "更新者")
    @TableField(value = "update_user")
    private String updateUser;

   /* *//**
     * 创建时间
     *//*
    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time")
    @JsonFormat(shape = JsonFormat.Shape.NUMBER,pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp createTime;

    *//**
     * 修改时间
     *//*
    @ApiModelProperty(value = "修改时间")
    @TableField(value = "update_time")
    @JsonFormat(shape = JsonFormat.Shape.NUMBER,pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp updateTime;*/

}
